import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';

/**
 * 移除某个key
 * @param fd 固定参数
 * @param key 键
 * @see [api](https://dfeidao.gitee.io/feidao-web/browser/local)
 * @example
 * ```ts
 * import remove from '@dfeidao/atom-mobile/local/remove';
 * remove(fd, 'key');
 * ```
 */

export default function remove(fd: IFeidaoAiMobile, key: string) {
	const local = fd.local as { [key: string]: unknown; };
	if (local) {
		delete local[key];
	}
}
